// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.text.templating;

import zombie.characters.IsoGameCharacter;

public class ReplaceProviderCharacter extends ReplaceProvider {
    public ReplaceProviderCharacter(final IsoGameCharacter character) {
        this.addReplacer(
            "firstname",
            new IReplace() {
                @Override
                public String getString() {
                    return character != null && character.getDescriptor() != null && character.getDescriptor().getForename() != null
                        ? character.getDescriptor().getForename()
                        : "Bob";
                }
            }
        );
        this.addReplacer(
            "lastname",
            new IReplace() {
                @Override
                public String getString() {
                    return character != null && character.getDescriptor() != null && character.getDescriptor().getSurname() != null
                        ? character.getDescriptor().getSurname()
                        : "Smith";
                }
            }
        );
    }
}
